package com.yc.txx.controller;


import com.yc.bean.Result;
import com.yc.txx.entity.TxxCar;
import com.yc.txx.entity.TxxImage;
import com.yc.txx.mapper.TxxCarMapper;
import com.yc.txx.mapper.TxxImageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 天下行租车-车辆轮播图-16 前端控制器
 * </p>
 *
 * @author k
 * @since 2025-02-04
 */
@RestController
@RequestMapping("/txximage")
public class TxxImageController {
    @Autowired
    TxxImageMapper txxImageMapper;
    @GetMapping("getImage")
    public Result getImage(@RequestParam("id") Integer id) {
        String[] txxImages = txxImageMapper.selectByCid(id);
        return new Result(1,"轮播图查找成功",txxImages);
    }
}
